﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Coway.Ordering.Sellers
{
    public class CreateUpdateSellerDto
    {
        public string Id { get; set; }

        /// <summary>
        /// 销售代号
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Code { get; set; }

        /// <summary>
        /// 销售姓名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 销售电话
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Phone { get; set; }

        /// <summary>
        /// 销售人员的电子邮件
        /// </summary>
        [Required]
        [EmailAddress]
        public string EMail { get; set; }

        /// <summary>
        /// 经理邮箱
        /// </summary>
        [EmailAddress]
        public string ManagerEmail { get; set; }
    }
}
